/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

public class Coordenada {
	public Coordenada() {
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_COORDENADA_TARJETA_IDTARJETA) {
			this.tarjeta_idtarjeta = (orm.Tarjeta) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int idcoordenada;
	
	private int valor;
	
	private orm.Tarjeta tarjeta_idtarjeta;
	
	private void setIdcoordenada(int value) {
		this.idcoordenada = value;
	}
	
	public int getIdcoordenada() {
		return idcoordenada;
	}
	
	public int getORMID() {
		return getIdcoordenada();
	}
	
	public void setValor(int value) {
		this.valor = value;
	}
	
	public int getValor() {
		return valor;
	}
	
	public void setTarjeta_idtarjeta(orm.Tarjeta value) {
		if (tarjeta_idtarjeta != null) {
			tarjeta_idtarjeta.coordenada.remove(this);
		}
		if (value != null) {
			value.coordenada.add(this);
		}
	}
	
	public orm.Tarjeta getTarjeta_idtarjeta() {
		return tarjeta_idtarjeta;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Tarjeta_idtarjeta(orm.Tarjeta value) {
		this.tarjeta_idtarjeta = value;
	}
	
	private orm.Tarjeta getORM_Tarjeta_idtarjeta() {
		return tarjeta_idtarjeta;
	}
	
	public String toString() {
		return String.valueOf(getIdcoordenada());
	}
	
}
